import pkgutil
from chart.configs import *

default_app_config = 'chart.apps.ChartConfig'

def autodiscover_providers():
    for loader, pkg_name, is_pkg in pkgutil.iter_modules(['chart/adapters']):
        try:
            __import__('chart.adapters.' + pkg_name)
        except ImportError as e:
            logging.error(e.message)

autodiscover_providers()
